-- GENERATED SPELL FOR [Bloodspore Moth] --


function spell0_25464(pUnit, Event) --@Pollen,Self--
pUnit:FullCastSpellOnTarget(45610,pUnit)
pUnit:RegisterEvent('Sorts_25464', 15000, 1)
end

function spell1_25464(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(32914,pUnit)
pUnit:RegisterEvent('Sorts_25464', 1000, 1)
end

function Sorts_25464(pUnit, Event)
local choix_sorts_25464 = math.random(0, 1)
if choix_sorts_25464 == 0 then
pUnit:RegisterEvent('spell0_25464', 1, 1)
end
if choix_sorts_25464 == 1 then
pUnit:RegisterEvent('spell1_25464', 1, 1)
end
end

function mob25464_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25464', math.random(1500, 3000), 1)
end

function mob25464_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25464_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25464_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25464, 1, 'mob25464_Action')
RegisterUnitEvent(25464, 2, 'mob25464_Leave')
RegisterUnitEvent(25464, 3, 'mob25464_Kill')
RegisterUnitEvent(25464, 4, 'mob25464_Die')
